package com.yu.waterstation.common.common.constant;

public final class Const {
    // ****************** 时间/秒 ************************//
    public static final long COSNT_one_minute = 60;
    public  static final long CONST_half_hour = COSNT_one_minute * 30;
    public static final long CONST_one_hour = CONST_half_hour * 2;
    public static final long CONST_one_day = CONST_one_hour * 24;
    public static final long CONST_one_week = CONST_one_day * 7;
    public static final long CONST_half_month = CONST_one_week * 2;
    public static final long CONST_one_month = CONST_half_month * 2;


    //********************** 普通常量 ***************************//
    public static final String CONST_token = "token";
    public static final String CONST_sys_user_id = "sysUserId";
    public static final String CONST_user_id = "userId";
    public static final String CONST_student_id = "studentId";
    public static final String CONST_worker_id = "workerId";
    public static final String CONST_username = "username";
    public static final String CONST_origin_password = "1234"; // 初始密码

    //********************* redis变量前缀 ***************************//
    // 验证码
    public static final String CONST_verify_code_redis_prefix = "verify_code:";
    // 锁
    public static final String CONST_lock_redis_prefix = "lock:";

    //************************ 缓存变量名称 ***************************//
    // 会话缓存
    public static final String CONST_sys_user_session_map = "sys_user_session_map";
    public static final String CONST_student_session_map = "student_session_map";
    public static final String CONST_worker_session_map = "worker_session_map";
    // 地址选择树
    public static final String CONST_address_tree_flag = "address_tree_flag";
    // 用户的反馈建议
    public static final String CONST_user_advice_list = "user_advice_list";

}
